//跳转购物车
var gouwuche;
$('.ingouwuche').click(function(){
    gouwuche = 0;
    localStorage.setItem("gouwuche", "0");
    window.location.href = "YZ_GWC_Shopping.html";
})


var yonghuleixingh = localStorage.getItem("yonghuleixing"); 
if (yonghuleixingh == 0) {
  $('.stabbar').css({
    display:'none'
  })
  $('.stabbaryh').css({
    display:'block'
  })
}else{
   $('.stabbar').css({
    display:'block'
  })
  $('.stabbaryh').css({
    display:'none'
  })
}
if( document.getElementById("asd") ) {
    var mySwiper = new Swiper ('.swiper-container-h', {
    direction: 'horizontal',
    loop: true,
    autoplay: {
        delay: 3000,
        disableOnInteraction: false,
      }
  })    

  var mySwiper2 = new Swiper ('.swiper-container-h2', {
    direction: 'horizontal',
    loop: true,
    autoplayDisableOnInteraction:false,
    // 如果需要分页器
    pagination: '.swiper-pagination',
  })    

var mySwiper3 = new Swiper ('.swiper-container-h3', {
    direction: 'vertical',
    loop: true,
    autoplay: {
        delay: 2000,
        disableOnInteraction: false,
      }
  })    
}


  
//客户设计师订单详情页
var biaolei;

$('.khweixuanbiaode').click(function(){
    biaolei = 1;
    localStorage.setItem("biaolei", "1");
    window.location.href = "YZ_DD_KHSJTicket.html";
})
$('.khyixuanbiaod').click(function(){
    biaolei = 0;
    localStorage.setItem("biaolei", "0");
    window.location.href = "YZ_DD_KHSJTicket.html";
})
$('.khdaifubiaode').click(function(){
    biaolei = 2;
    localStorage.setItem("biaolei", "2");
    window.location.href = "YZ_DD_KHSJTicket.html";
})
$('.khjinxingbiaode').click(function(){
    biaolei = 3;
    localStorage.setItem("biaolei", "3");
    window.location.href = "YZ_DD_KHSJTicket.html";
})
$('.khyiwancbiaode').click(function(){
    biaolei = 4;
    localStorage.setItem("biaolei", "4");
    window.location.href = "YZ_DD_KHSJTicket.html";
})

////客户施工订单详情页
$('.khSGweixuanbiaode').click(function(){
    biaolei = 1;
    localStorage.setItem("biaolei", "1");
    window.location.href = "YZ_DD_SiGongTicket.html";
})
$('.khSGyixuanbiaod').click(function(){
    biaolei = 0;
    localStorage.setItem("biaolei", "0");
    window.location.href = "YZ_DD_SiGongTicket.html";
})
$('.khSGdaifubiaode').click(function(){
    biaolei = 2;
    localStorage.setItem("biaolei", "2");
    window.location.href = "YZ_DD_SiGongTicket.html";
})
$('.khSGjinxingbiaode').click(function(){
    biaolei = 3;
    localStorage.setItem("biaolei", "3");
    window.location.href = "YZ_DD_SiGongTicket.html";
})
// $('.khSGyiwancbiaode').click(function(){
//     biaolei = 4;
//     localStorage.setItem("biaolei", "4");
//     window.location.href = "KHSGongTicket.html";
// })





/*用户设计师订单*/
$('.kehumytickey').click(function(){
  $('.kehumytickey').css({
    background:'#b2bfa1',
    color:'#fff'
  })
  $('.khtickyifu').css({
    background:'#fff',
    color:'#000'
  })
  $('.khtickdaifu').css({
    background:'#fff',
    color:'#000'
  })
  $('.khtickyiwan').css({
    background:'#fff',
    color:'#000'
  })
  
  $('.xuqiudanjkj').css({
    display:'block'
  })
  $('.sjdaifukuang').css({
    display:'none'
  })
  $('.sjjinxingz').css({
    display:'none'
  })
  $('.sjyiwancheng').css({
    display:'none'
  })
})

$('.khtickyifu').click(function(){
  $('.khtickyifu').css({
    background:'#b2bfa1',
    color:'#fff'
  })
  $('.khtickdaifu').css({
    background:'#fff',
    color:'#000'
  })
  $('.khtickyiwan').css({
    background:'#fff',
    color:'#000'
  })
  $('.kehumytickey').css({
    background:'#fff',
    color:'#000'
  })
  $('.sjdaifukuang').css({
    display:'block'
  })
  $('.sjjinxingz').css({
    display:'none'
  })
  $('.sjyiwancheng').css({
    display:'none'
  })
  $('.xuqiudanjkj').css({
    display:'none'
  })
})
$('.khtickdaifu').click(function(){
  $('.khtickdaifu').css({
    background:'#b2bfa1',
    color:'#fff'
  })
  $('.khtickyifu').css({
    background:'#fff',
    color:'#000'
  })
  $('.khtickyiwan').css({
    background:'#fff',
    color:'#000'
  })
  $('.kehumytickey').css({
    background:'#fff',
    color:'#000'
  })
  $('.sjjinxingz').css({
    display:'block'
  })
  $('.sjdaifukuang').css({
    display:'none'
  })
  $('.sjyiwancheng').css({
    display:'none'
  })
  $('.xuqiudanjkj').css({
    display:'none'
  })
})
$('.khtickyiwan').click(function(){
  $('.khtickyiwan').css({
    background:'#b2bfa1',
    color:'#fff'
  })
  $('.khtickyifu').css({
    background:'#fff',
    color:'#000'
  })
  $('.khtickdaifu').css({
    background:'#fff',
    color:'#000'
  })
  
  $('.kehumytickey').css({
    background:'#fff',
    color:'#000'
  })
  $('.sjyiwancheng').css({
    display:'block'
  })
  $('.sjdaifukuang').css({
    display:'none'
  })
  $('.sjjinxingz').css({
    display:'none'
  })
  $('.xuqiudanjkj').css({
    display:'none'
  })
})

// 厂家直销
var chanjia;

$('.bendicailisosc').click(function(){
    // biaolei = 7;
    // localStorage.setItem("chanjia", "7");
    window.location.href = "CLS_BD_BenDiCL.html";
})
$('.bendipinpailis').click(function(){
    // biaolei = 8;
    // localStorage.setItem("chanjia", "8");
    window.location.href = "CLS_PD_PdanDiCL.html";
})
$('.changjiazhixiaoindex').click(function(){
    // biaolei = 6;
    // localStorage.setItem("chanjia", "6");
    window.location.href = "CLS_ZX_ChangDiCL.html";
})
//拼单
$('.pindanyixa').click(function(){
    // biaolei = 9;
    // localStorage.setItem("chanjia", "9");
    window.location.href = "CLS_PD_PdanDiCL.html";
})

//材料商订单详情
$('.fhuowc').click(function(){
  $('.tishi').css({
    display:'block'
  })
})
$('.quxiaod').click(function(){
  $('.tishi').css({
    display:'none'
  })
})
$('.quedind').click(function(){
  $('.tishi').css({
    display:'none'
  })
  window.location.href = "CLS_DD_Ticket.html";
})

//客户施工订单


//客户材料订单
$('.khCLtickdaifu').click(function(){
  $('.khCLtickdaifu').css({
    background:'#b2bfa1',
    color:'#fff'
  })
  $('.khCLtickyifu').css({
    background:'#fff',
    color:'#000'
  })
  $('.khCLtickyiwan').css({
    background:'#fff',
    color:'#000'
  })
  
  $('.cldaifu').css({
    display:'block'
  })
  $('.clyifu').css({
    display:'none'
  })
  $('.clyishou').css({
    display:'none'
  })
})

$('.khCLtickyifu').click(function(){
  $('.khCLtickyifu').css({
    background:'#b2bfa1',
    color:'#fff'
  })
  $('.khCLtickdaifu').css({
    background:'#fff',
    color:'#000'
  })
  $('.khCLtickyiwan').css({
    background:'#fff',
    color:'#000'
  })
   $('.clyifu').css({
    display:'block'
  })
  $('.cldaifu').css({
    display:'none'
  })
  $('.clyishou').css({
    display:'none'
  })
})
$('.khCLtickyiwan').click(function(){
  $('.khCLtickyiwan').css({
    background:'#b2bfa1',
    color:'#fff'
  })
  $('.khCLtickdaifu').css({
    background:'#fff',
    color:'#000'
  })
  $('.khCLtickyifu').css({
    background:'#fff',
    color:'#000'
  })
  
  $('.clyishou').css({
    display:'block'
  })
  $('.cldaifu').css({
    display:'none'
  })
  $('.clyifu').css({
    display:'none'
  })
 
})